﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using SystemDALInterface;
using SystemModels;
using SystemDAL;


namespace SystemDALFactory
{
    public class Factory
    {

        #region   获取用户管理对象实例
        /// <summary>
        /// 获取用户管理实例
        /// </summary>
        /// <returns>IUserManager</returns>
        public static IUserManager CreateUserManager()
        {
            IUserManager userManager = new UserDBManager();
            return userManager;
        }
        #endregion

        #region 获取菜单管理对象实例
        /// <summary>
        /// 获取菜单对象
        /// </summary>
        /// <returns>IMenuManager接口</returns>
        public static IMenuManager CreateMenuManager()
        {
            IMenuManager menuManager = new MenuDAL();
            return menuManager;
        }
        #endregion 



    }
}
